package com.hwf;

import com.hwf.service.UserInterface;
import com.hwf.service.UserService;
import com.spring.HwfApplicationContext;

public class Test {
    public static void main(String[] args) {
        HwfApplicationContext applicationContext = new HwfApplicationContext(AppConfig.class);
//        UserService userService = (UserService) applicationContext.getBean("userService");
//        userService.test();
        UserInterface userInterface = (UserInterface) applicationContext.getBean("userService"); //拿到的是代理对象
        userInterface.test();
    }
}
